﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace iTechnology.Tools
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            iTechnology.Tools.Sharepoint.SharePointHelper helper = new iTechnology.Tools.Sharepoint.SharePointHelper();
            if (helper.IsSharepointExist)
                Application.Run(new MainForm());
            else
                MessageBox.Show("The application was not able to detect Sharepoint. Please run the tool on the Sharepoint server.", "List Instances Fix Tool By iTechnology", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
        }
    }
}
